package vip.geeker.iotms.help;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author zhoup
 * @Date 2020/4/27 11:38 上午
 * @Description 常量类
 * @Email acacio@foxmail.com
 * To change this template use File | Settings | Editor | File and Code Templates.
 **/
public class Constants {

    public static final String INDEX = "index";

    public static final String MAIN = "system/main";
    public static final String DATA = "system/data";

    public static final String ERROR = "error/500";
    public static final String USER_PAGE = "user/page";
    public static final String ADD_USER = "user/add";

    public static final String USER_SESSION_KEY = "IOT-MS-SESSION";

    public static final String WARN_RULE = "warn/rule";
    public static final String WARN_INFO = "warn/info";
    public static final String WARN_RULE_ADD = "warn/addWarnRule";

    public static final String DEVICE_PARAMS_URL = "device/params";
    public static final String DEVICE_INFO_URL = "device/info";
    public static final String DEVICE_TYPE_URL = "device/type";
    public static final String ADD_DEVICE_TYPE_URL = "device/addDeviceType";
    public static final String ADD_DEVICE_PARAMS_URL = "device/addDeviceParams";
    public static final String ADD_DEVICE_INFO_URL = "device/addDeviceInfo";
    public static final String ADD_DEVICE_TYPE_DATA_URL = "device/addDeviceTypeData";
    public static final String PARSING_RULE = "device/splitRule";
    public static final String PARSING_RULE_ADD = "device/addSplitRule";
    public static final String DEVICE_TYPE_DATA_URL = "device/typeData";
    public static final String DEVICE_DATA_URL = "device/data";

    public static final String DATA_LIST_PAGE_URL = "data/page";
    public static final String DATA_TYPE_LIST_PAGE_URL = "data/dataTypeList";
    public static final String DATA_REAL_PAGE_URL = "data/realData";


    public static final Response SUC_JSON = Response.successMsg("操作成功");
    public static final Response ERR_JSON = Response.error("操作失败");

    public static final Map<String, String> RESPONSE_OK = new HashMap<>();

    static {
        RESPONSE_OK.put("code", "200");
        RESPONSE_OK.put("message", "操作成功");
    }

}
